<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
         * {
             margin: 0;
             padding: 0;
        }
        ul li {
            list-style: none;
        }
        .box {
            width: 100px;
            height: 300px;
            border: 1px solid #000;
            position: relative;
            margin: 100px auto;
        }
        .box li {
            width: 100px;
            height: 300px;
            position: absolute;
            font-size: 20px;
            opacity: 0.3;
            transform-origin: bottom center;
            /* 过度动画属性 */
            transition: all 1s;
            box-shadow: 1px 2px 3px #111
        }
        .box li:nth-child(1){
            background-color: red;
        }
        .box:hover li:nth-child(1){
            transform: rotate(-90deg);
        }
        .box li:nth-child(2){
            background-color: rgb(91, 15, 163);
        }
        .box:hover li:nth-child(2){
            transform: rotate(-72deg);
        }
        .box li:nth-child(3){
            background-color: blue;
        }
        .box:hover li:nth-child(3){
            transform: rotate(-54deg);
        }
        .box li:nth-child(4){
            background-color: yellow;
        }
        .box:hover li:nth-child(4){
            transform: rotate(-36deg);
        }
        .box li:nth-child(5){
            background-color: rgb(84, 248, 43);
        }
        .box:hover li:nth-child(5){
            transform: rotate(-18deg);
        }
        .box li:nth-child(6){
            background-color: rgb(134, 53, 15);
        }
        .box:hover li:nth-child(6){
            transform: rotate(0deg);
        }
        .box li:nth-child(7){
            background-color: skyblue;
        }
        .box:hover li:nth-child(7){
            transform: rotate(18deg);
        }
        .box li:nth-child(8){
            background-color: gray;
        }
        .box:hover li:nth-child(8){
            transform: rotate(36deg);
        }
        .box li:nth-child(9){
            background-color: gray;
        }
        .box:hover li:nth-child(9){
            transform: rotate(54deg);
        }
        .box li:nth-child(10){
            background-color: gray;
        }
        .box:hover li:nth-child(10){
            transform: rotate(72deg);
        }
        .box li:nth-child(11){
            background-color: gray;
        }
        .box:hover li:nth-child(11){
            transform: rotate(90deg);
        }
    </style>
</head>
<body>
    <!-- 快捷生成标签 ul>li{$}*20 -->

    <ul class="box">
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li>6</li>
        <li>7</li>
        <li>8</li>
        <li>9</li>
        <li>10</li>
        <li>11</li>
    </ul>


</body>
</html>